package com.aliyun.oss.UserService.impl;

import com.aliyun.oss.UserMapper.SetmealDishMapper;
import com.aliyun.oss.UserService.SetmealDishService;
import com.aliyun.oss.pojo.Entity.setMealDish;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealDishServiceImpl extends ServiceImpl<SetmealDishMapper, setMealDish> implements SetmealDishService {
    @Override
    public List<setMealDish> dishList(Integer id) {
        List<setMealDish> list = list(new QueryWrapper<setMealDish>().eq("setmeal_id", id));
        return list;
    }
}
